package pa1.helloworld_example;

import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * This interface defines the remote service Hello.
 * Hello says hello on demand.
 */
public interface Hello extends Remote
{

    /**
     * Returns the service name.
     *
     * @return the service name.
     */
    public final String SERVICENAME = "helloworld.Hello";

    /**
     * Returns a string telling us hello.
     *
     * @return a hello string.
     * @exception RemoteException if a transport or service failure occurs.
    */
    public String sayHello() throws RemoteException;
}
